	/* 
	功能：获取当前日期时间：yyyy-mm-dd hh:mm:ss
	*/

	function  getNowDateTime() {

		var now = new Date();
		var tep = "-";
		var year = now.getFullYear();
		var month = now.getMonth() + 1;
		var day = now.getDate();
		if (month >= 1 && month <= 9) {
				month = "0" + month;
		}
		if (day >= 1 && day <= 9) {
				day = "0" + day;
		}
		var today = String(year) + tep + String(month) + tep + String(day);


		var d = new Date()
		if(d.getHours().toString().length == 1){
			var hh = '0'+ d.getHours().toString()
		}else{ var hh = d.getHours()}
		if(d.getMinutes().toString().length == 1){
			var mm = '0'+ d.getMinutes().toString()
		}else{ var mm = d.getMinutes().toString()}
		if(d.getSeconds().toString().length == 1){
			var ss = '0'+ d.getSeconds().toString()
		}else{ var ss = d.getSeconds().toString()}
		return today+' '+hh+':'+mm+':'+ss
	}

	module.exports={
		getNowDateTime
		}

	/**
		 * 其他页面引用此函数：
		 * 1， 页面.js 引入此函数：
		 * 	  var todayDatetTime = require("../../utils/CustomFunction/getNowDateTime.js")
		 * 
		 * 2. 获取此函数的返回值：
		 *    const getnowDateTime = todayDatetTime.getNowDateTime()
		 * 		或
		 * 		this.setData({
		 * 		getTime:getNowTime.getNowTime()
		 * 		})
		 *
		 */